import React from 'react';
import { TouchableOpacity } from 'react-native';

import Ionicons from 'react-native-vector-icons/Ionicons';

export default function BackButton({ callBack }) {
  return (
    <TouchableOpacity
      onPress={callBack}
      style={{ padding: 8, paddingLeft: 12 }}
    >
      <Ionicons name="ios-arrow-back" size={26} color="white" />
    </TouchableOpacity>
  );
}
